import { getServer } from './base.js';
import { BASE_URL } from './config.js';

const goodsServer = getServer(BASE_URL.httpUrl);

/**
 * 获取信息
 * @param  postId
 */
export const getInfoApi = (shopId) => {
  return goodsServer.get('/comments', {
    shop_id: shopId,
  });
};

/**
 * 获取信息
 * @param  postId
 */
export const postInfoApi = (postId) => {
  return goodsServer.post('/comments', {
    postId: postId,
  });
};
